import 'package:flutter/material.dart';

class HeroPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      child: Center(
        child: Hero(
          child: Container(
            height: 200,
            width: 200,
            color: Colors.red,
            child: Text('it is the second view',style:TextStyle(color: Colors.white)),
          ),
          tag: 'hero',
        ),
      ),
    );
  }
}
